<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	    <link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
	    <link rel="stylesheet" href="../../css/city/live.css" />
	    <script src="../../js/statistics.js"></script>
	</head>
	<body>
		<header>
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<span class="box">
				<img src="../../images/city/live-icon.png">
				<span>自在溧阳官方 </span>
			</span>
			<span class="download"></span>
		</header>
		<div class="body">
			<video src="http://pullhls23ed44ec.live.126.net/live/ee9b3cd800bd478ca5ca1e3e71526df5/playlist.m3u8" autoplay="autoplay"></video>
		</div>
		<script src="../../plugins/jquery/jquery-3.1.0.min.js" type="text/javascript" ></script>
		<script src="../../plugins/mui/mui.min.js"></script>
		<script type="text/javascript">
			mui.init();
			
			mui.plusReady(function(){
				var wait = plus.nativeUI.showWaiting('正在加载中...');
				var id = plus.webview.currentWebview().uid;
				
				mui.ajax('http://api.jianglive.com/liveRoom/intoRoom',{
					type:'get',
					data:{'userId':id},
					success:function(data){
						
						wait.close();
						if(data.success){
							console.log(JSON.stringify(data));
//							console.log(data.data.liveRoom.hlsPull)
//							$("video").attr('src',data.data.liveRoom.hlsPull);
						}else{
							mui.alert(data.message)
						}
					}
				})
			})
		</script>
	</body>
</html>
